﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace AGPR.Locadora.Desktop
{
    static class Program
    {
        public static Session sessao = Session.Instancia;

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            bool isLogado = sessao.get("logado") == true;

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            if (isLogado)
            {
                Application.Run(new FPrincipal());
            }
            else
            {
                Application.Run(new Login());
            }            
        }
    }
}
